package com.rain.search.controller;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @auther 德哲
 * @date 2019/4/29 15:06.
 */
@Component
@RabbitListener(queues = "lu")
public class RabbitMqTest {

    @RabbitHandler
    public void getMessages(String messages){
        System.out.println("这是分列lu模式发的消息："+messages);
    }

}
